/*    */ package com.hs.activation.controller;
/*    */ 
/*    */ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
/*    */ import com.hs.activation.common.result.BaseController;
/*    */ import com.hs.activation.common.result.Result;
/*    */ import com.hs.activation.entity.ActivationLog;
/*    */ import com.hs.activation.service.IActivationLogService;
/*    */ import io.swagger.annotations.Api;
/*    */ import io.swagger.annotations.ApiOperation;
/*    */ import io.swagger.annotations.ApiParam;
/*    */ import org.springframework.beans.factory.annotation.Autowired;
/*    */ import org.springframework.web.bind.annotation.GetMapping;
/*    */ import org.springframework.web.bind.annotation.PathVariable;
/*    */ import org.springframework.web.bind.annotation.RequestMapping;
/*    */ import org.springframework.web.bind.annotation.RestController;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ @RestController
/*    */ @RequestMapping({"/activation/log"})
/*    */ @Api(value = "激活信息记录接口", tags = {"激活信息记录接口"})
/*    */ public class ActivationLogController
/*    */   extends BaseController
/*    */ {
/*    */   @Autowired
/*    */   IActivationLogService activationLogService;
/*    */   
/*    */   @ApiOperation(value = "获取激活信息记录", notes = "获取激活信息记录-分页", httpMethod = "GET")
/*    */   @GetMapping({"/{current}/{size}"})
/*    */   public Result list(@PathVariable @ApiParam(value = "当前页", required = true) Long current, @PathVariable @ApiParam(value = "每页个数", required = true) Long size, @ApiParam("激活信息ID") Integer activationId) {
/* 40 */     Page<ActivationLog> page = new Page(current.longValue(), size.longValue());
/* 41 */     return ok(this.activationLogService.queryByActivationId(page, activationId));
/*    */   }
/*    */ }


/* Location:              C:\Users\yzc\Desktop\新建文件夹 (3)\activation-0.0.16.jar!\BOOT-INF\classes\com\hs\activation\controller\ActivationLogController.class
 * Java compiler version: 16 (60.0)
 * JD-Core Version:       1.1.3
 */